package cn.kgc.spring06.interfac.impl;

import cn.kgc.spring06.anno.Log;
import cn.kgc.spring06.interfac.Teacher;
import org.springframework.stereotype.Component;

/**
 * @Author: 课工场
 * @Version: v1.0  2023/4/29
 * @Description:
 */
@Component
public class TeacherWang implements Teacher {


    @Log
    @Override
    public String teachOnline(String course) {
        System.out.println("============"+course+"正在线上授课=============");
        return course;
    }

    @Log
    @Override
    public String teachOffline(String course, Integer time) {
        System.out.println("============"+course+"正在线下授课=============");
        //int i  = 1/0;
        return course+":"+time;
    }
}
